function SoulForceAdd(){//转生魂力增加
	let soulForceADD = 1;
	switch (plus.storage.getItem("Race")){
		case "人"://如果是种族人
			switch(plus.storage.getItem("MyRealm")){
				case "无":
					soulForceADD *= 0;
					break;
				case "练气前期":
					soulForceADD *=1;
					break;
				case "练气中期":
					soulForceADD *=1;
					break;
				case "练气后期":
					soulForceADD *=1;
					break;
				case "筑基前期":
					soulForceADD *=2;
					break;
				case "筑基中期":
					soulForceADD *=2;
					break;
				case "筑基后期":
					soulForceADD *=2;
					break;
				case "金丹前期":
					soulForceADD *=4;
					break;
				case "金丹中期":
					soulForceADD *=4;
					break;
				case "金丹后期":
					soulForceADD*=4;
					break;
				case "元婴前期":
					soulForceADD *=8;
					break;
				case "元婴中期":
					soulForceADD *=8;
					break;
				case "元婴后期":
					soulForceADD *= 8;
					break;
				default:
					console.log("数据出错"+plus.storage.getItem("MyRealm"));
					break;
					return "err";
			}
			break;
		default:
			break;
	}
	return soulForceADD;	
}
	

function NowWorldClear(){//清理数据
	plus.storage.setItem("Soul");
	plus.storage.setItem("Race","人");
	plus.storage.setItem("Strongest","练气后期");
	plus.storage.setItem("Fate","空");
	//个人修炼
	plus.storage.setItem("MyRealm","无");
	plus.storage.setItem("MyEnergy","40");
	plus.storage.setItem("MyMind","1");
	plus.storage.setItem("MyAge","50");
	plus.storage.setItem("MyVim","0");
	plus.storage.setItem("MyGuts","0");
		//锻造部分
		plus.storage.setItem("MyForgeExpUp","0");
		plus.storage.setItem("MyForgeAttackUp","0");
		plus.storage.setItem("MyForgeDefineUp","0");
	//地界加成
	plus.storage.setItem("MyRealmAreaDouble","0");
	plus.storage.setItem("MyEnergyAreaDouble","0");
	plus.storage.setItem("MyAgeAreaDouble","0");
	plus.storage.setItem("MyMindAreaDouble","0");
	//领地资源
	plus.storage.setItemAsync("MyAreaBig","0",function(){},function(){});
	plus.storage.setItemAsync("MyAreaHasEnergy","0",function(){},function(){});
	plus.storage.setItemAsync("MyAreaPlant","0",function(){},function(){});
	plus.storage.setItemAsync("MyAreaMine","0",function(){},function(){});
	plus.storage.setItemAsync("MyAreaBeast","0",function(){},function(){});
	plus.storage.setItemAsync("MyAreaPulse","0",function(){},function(){});
	//战斗属性
	plus.storage.setItem("MyVita","10");
	plus.storage.setItem("MyDamage","0");
	plus.storage.setItem("MyDefend","0");
	plus.storage.setItem("MyEnd","0");
	//外交部分
		//探索
	plus.storage.setItemAsync("MyFindArea","0",function(){},function(){});
	plus.storage.setItemAsync("MyCopyNum","0",function(){},function(){});
}

